package cn.tedu.action;

import java.util.Map;

import com.opensymphony.xwork2.ActionContext;

import cn.tedu.entity.UserValue;

public class UserAction {
	
	private UserValue userValue;
	
	private String message;
	
	

	public String getMessage() {
		return message;
	}

	public UserValue getUserValue() {
		return userValue;
	}

	public void setUserValue(UserValue userValue) {
		this.userValue = userValue;
	}
	
	
	
	
	public String execute(){
		
		ActionContext ctx = ActionContext.getContext();
		Map<String, Object> session = ctx.getSession();
		
		session.put("user","Tom");

		message="OK!";
		
		System.out.println("message:"+message);
		
		System.out.println("userValue:"+userValue);
		
		return "user";
		
	}
	
	
	

}
